package com.jia;

import com.jia.order.config.FeignClientConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;


@SpringBootApplication
@MapperScan("com.jia.order.mapper")
//@EnableFeignClients(defaultConfiguration = FeignClientConfiguration.class) // 开启feign开关 全局生效
@FeignClient(value = "userservice",configuration = FeignClientConfiguration.class)//局部生效
public class OrdersApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrdersApplication.class, args);
    }
}
